package IC.videopatrol.controller;

import IC.common.core.domain.R;
import IC.videopatrol.domain.Equipment;
import IC.videopatrol.service.Faceequipmentservice;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class FaceequipmentController {
    @Autowired
    private Faceequipmentservice faceequipmentservice;

    /**
     * 设备列表
     */
    @PostMapping("/findequipment")
    public R<List<Equipment>> findequipment() {
        List<Equipment> equipmentList = faceequipmentservice.findequipment();
        return R.ok(equipmentList);
    }
}
